﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a ,b;
            string c;
            int result=0;
            Console.WriteLine("请输入运算公式(  a+b )");
            a = Convert.ToInt32(Console.ReadLine());
            c = Console.ReadLine();
            b = Convert.ToInt32(Console.ReadLine());
            
            switch (c)
            {
                case "+":
                    result = a + b;
                    break;
                case "-":
                    result = a - b;
                    break;
                case "*":
                    result = a * b;
                    break;
                case "/":
                    result = a / b;
                    break;

            }
            Console.WriteLine("结果是"+ result);

        }
    }
}
